package com.project.service;

import com.project.entity.Class;

import java.util.List;

/**
 * @Author: TateBrown
 * @date: 2018/5/26 12:36
 * @param:
 * @return:
 */
public interface ClassService {
    int add(Class classroom);

    int removeOne(Integer id);

    boolean removeOneChain(Integer id);

    int modify(Class classroom);

    Class findOne(Integer id);

    List<Class> findBatchByMajorid(Integer majorid);

    List<Class> findBatchBySchoolId(Integer schoolId);

    boolean checkClassIsExist(Class clazz);

    int removeByMajorId(Integer majorId);

    int removeByDepartmentId(Integer departmentId);

    int removeBatchBySchoolId(Integer schoolId);
}
